package com.jack006.article.service;

import com.jack006.pojo.Article;
import com.jack006.pojo.vo.ArticleDetailVO;
import com.jack006.utils.PagedGridResult;

import java.util.List;

/**
 * @Classname ArticlePortalService
 * @Description 门户文章接口定义
 * @Date 2021-07-03 14:39
 * @Created by jack
 */
public interface ArticlePortalService {


    /**
     * 查询我的文章列表
     * @param keyword
     * @param categoryId
     * @param page
     * @param pageSize
     * @return
     */
    PagedGridResult queryArticleList(String keyword,
                                     Integer categoryId,
                                     Integer page,
                                     Integer pageSize);

    /**
     * 查询热点新闻列表
     * @return
     */
    List<Article> queryHotList();

    /**
     * 查询用户文章
     * @param writerId
     * @param page
     * @param pageSize
     * @return
     */
    PagedGridResult queryArticleListOfWriter(String writerId, Integer page, Integer pageSize);

    /**
     * 查询用户近期文章
     * @param writerId
     * @return
     */
    PagedGridResult queryGoodArticleListOfWriter(String writerId);

    /**
     * 查询文章详情
     * @param articleId
     * @return
     */
    ArticleDetailVO queryDetail(String articleId);
}

